#!/bin/bash
SCRIPTNAME=vbs_clearschedule
scriptPath=${0%$SCRIPTNAME}
if [ -z "$scriptPath" ]
then
  #invoked from PATH
  scriptPath=$(which $0)
  scriptPath=${scriptPath%$SCRIPTNAME}
fi
source ${scriptPath}vbs_common_functions

(
flock  -x 201
echo "" > $SCHEDULE
) 201>$SCHEDLOCKFILE
echo $(date --rfc-3339=seconds) "Manually cleared schedule" | tee -a  $LOGFILE
